# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-mrboom
pkgver=0_git20220725
pkgrel=0
_commit="1bc0933b71051411404cdc092b14ade17efb2027"
_commit_common="2a0ec8d59c6219f6627bc0465cb177be88d8cb4f"
pkgdesc="8 player Bomberman clone for RetroArch/Libretro"
url="https://github.com/libretro/mrboom-libretro"
arch="all"
license="MIT"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/mrboom-libretro/archive/$_commit.tar.gz
	$pkgname-libretro-common.tar.gz::https://github.com/libretro/libretro-common/archive/$_commit_common.tar.gz
	"
builddir="$srcdir/mrboom-libretro-$_commit"
options="!check" # No tests

prepare() {
	default_prepare
	rm -rf libretro-common && mv "$srcdir/libretro-common-$_commit_common" libretro-common
}

build() {
	make
}

package() {
	install -Dm644 mrboom_libretro.so "$pkgdir"/usr/lib/libretro/mrboom_libretro.so
}

sha512sums="
d46d6890bf4464cdbc347278c92d44b344480f8564f72e87c50533c48bb0f224f66f86b29646c1389247dcdc18b20af3e97882875e6db0f5a17cd1c177b71d03  libretro-mrboom-1bc0933b71051411404cdc092b14ade17efb2027.tar.gz
d27d8f9c36dad00b9a0ace60c7cac8f15159f1450cda28e419fa18c914b3e91781c1e509acdbf32328b98f3c2f6ba1f4994a160346f660e7a3888947553968ee  libretro-mrboom-libretro-common.tar.gz
"
